Support setting file times of directories on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Fri, 5 Oct 2012 09:17:17 +0000 (11:17 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 5 Oct 2012 09:17:17 +0000 (11:17 +0200)
commit5cf93d7c5bfa5ffed9e6c928baef0dda9ca6e84f
tree789ca3f24a4dff94705072b80436285207d5b02e
parent190a6acc31cbbde009e6fe43b0563b5b70808414
Support setting file times of directories on MS-Windows.

 src/w32.c (utime): Open the file with FILE_FLAG_BACKUP_SEMANTICS, so
 that time stamps of directories could also be changed.  Don't
 request the too broad GENERIC_WRITE, only the more restrictive
 FILE_WRITE_ATTRIBUTES access rights.
 src/fileio.c (Fset_file_times): Special-case ignoring errors for
 directories only on MSDOS, not on MS-Windows.
src/ChangeLog
src/fileio.c
src/w32.c